﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true" CodeBehind="OrdersList_Detail.aspx.cs" Inherits="OnlineDigitalCameraWebsite.Admin.OrderList_Detail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2 class="sub-header">
        <asp:Label ID="lblTieuDe" runat="server" Text=""></asp:Label></h2>
    <h4 class="sub-header">
        <a href="/Admin/OrdersList.aspx" class="label label-info">Quay về danh sách</a>
        <asp:HyperLink ID="lblLink" Target="_blank" runat="server" Text=""></asp:HyperLink>

    </h4>

    <table class="auto-style1">

        <tr>
            <td colspan="2">
                <asp:Label ID="lbThongBao" class="label label-success" runat="server" Text=""></asp:Label><br />
                <br />
            </td>

        </tr>
        <tr>
            <td style="width: 100px">Tên </td>
            <td style="width: 1200px">
                <asp:TextBox ID="txtName" CssClass="form-control" runat="server" Width="500px" required ></asp:TextBox><br />
            </td>
        </tr>


        <tr>
            <td>Địa chỉ</td>
            <td>
                <asp:TextBox ID="txtDiaChi" CssClass="form-control" runat="server" Width="500px" required ></asp:TextBox><br />
            </td>
        </tr>
        <tr>
            <td>Điện Thoại</td>
            <td>
                <asp:TextBox ID="txtDienThoai" CssClass="form-control" runat="server" Width="500px" required></asp:TextBox><br />
            </td>
        </tr>
        <tr>
            <td>Ngày</td>
            <td>
                <asp:TextBox ID="txtNgay" CssClass="form-control" runat="server" Width="500px" Enabled="false" required></asp:TextBox><br />
            </td>
        </tr>
        <tr>
            <td>User ID</td>
            <td>
                <asp:TextBox ID="txtUserID" CssClass="form-control" runat="server" Width="500px" Enabled="false" required></asp:TextBox><br />
            </td>
        </tr>

        <tr>
            <td>Tình trạng</td>
            <td>
                <asp:DropDownList ID="ddlStatus" CssClass="form-control" runat="server" Width="300px">
                    <asp:ListItem Value="False">Chưa Duyệt</asp:ListItem>
                    <asp:ListItem Value="True">Duyệt</asp:ListItem>
                </asp:DropDownList>
                <br />
            </td>
        </tr>
        <tr>

            <td></td>
            <td>
                <asp:Button ID="btnOK" CssClass="btn btn-info" runat="server" Text="Lưu Lại" OnClick="btnOK_Click" />
                <br />
                <br />
                <br />
                <br />
            </td>
        </tr>
    </table>


    <h4 class="sub-header">Chi tiết Orders
    </h4>

    <asp:GridView ID="gvDS" runat="server" AllowPaging="True" class="table" AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" >
        <AlternatingRowStyle BackColor="Gainsboro" />
        <Columns>

            <asp:TemplateField HeaderText="Mã" Visible="false">
                <EditItemTemplate>
                    <asp:Label ID="id" runat="server" Text='<%# Bind("ordersProductDetailsId") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="id1" runat="server" Text='<%# Bind("ordersProductDetailsId") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ordersId"  Visible="false">
                <EditItemTemplate>
                    <asp:Label ID="ordersId" runat="server" Text='<%# Bind("ordersId") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="ordersId1" runat="server" Text='<%# Bind("ordersId") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ProductId">
                <EditItemTemplate>
                    <asp:Label ID="ProductId" runat="server" Text='<%# Bind("ProductId") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="ProductId1" runat="server" Text='<%# Bind("ProductId") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="ProductType">
                <EditItemTemplate>
                    <asp:Label ID="ProductType" runat="server" Text='<%# Bind("ProductType") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="ProductType1" runat="server" Text='<%# Bind("ProductType") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Giá">
                <EditItemTemplate>
                    <asp:Label ID="Price" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Price1" runat="server" Text='<%# Bind("Price") %>' Visible="false"></asp:Label>

                    <asp:Label ID="Label1" runat="server" Text='<%#  string.Format(System.Globalization.CultureInfo.CreateSpecificCulture("vi-VN"), "{0:#,## VNĐ}",Eval("Price")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>

             <asp:TemplateField HeaderText="Tổng tiền">
                <EditItemTemplate>
                    <asp:Label ID="Amount" runat="server" Text='<%# Bind("Amount") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Amount1" runat="server" Text='<%# Bind("Amount") %>' Visible="false"></asp:Label>

                    <asp:Label ID="Label1" runat="server" Text='<%#  string.Format(System.Globalization.CultureInfo.CreateSpecificCulture("vi-VN"), "{0:#,## VNĐ}",Eval("Amount")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Tình trạng">
                <EditItemTemplate>
                    <asp:Label ID="orderDetailsStatus" runat="server" Text='<%# Bind("orderDetailsStatus") %>'></asp:Label>

                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="orderDetailsStatus1" runat="server" Text='<%# Bind("orderDetailsStatus") %>'></asp:Label>

                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Cập Nhật">
                <EditItemTemplate>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:HyperLink runat="server" Text="Cập Nhật" NavigateUrl='<%# "/Admin/OrdersList_Detail.aspx?type=capnhat&id=" + Eval("ordersId") %>'></asp:HyperLink>
                </ItemTemplate>

            </asp:TemplateField>
            <asp:TemplateField HeaderText="Xóa" ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" OnClientClick=" return confirm('Bạn có chắc chắn muốn xóa không ?');" Text="Xóa"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>

</asp:Content>
